package Fluid;import java.awt.event.KeyEvent;import java.awt.event.KeyListener;import javax.swing.JFrame;public class FluidFrame extends JFrame implements KeyListener{    FluidPanel fluidpanel;    int dimensions = 600;    public FluidFrame()    {        setDefaultCloseOperation(EXIT_ON_CLOSE);        addKeyListener(this);        setResizable(false);        setAlwaysOnTop(true);                setBounds(100,50,dimensions,dimensions);        fluidpanel = new FluidPanel(dimensions);        setContentPane(fluidpanel);//can change any panel from here        fluidpanel.start();    }    public void keyTyped(KeyEvent e)     {    }    public void keyPressed(KeyEvent e)     {        //exit programe after press escape        if(e.getKeyCode() == KeyEvent.VK_ESCAPE)        {            System.gc();            System.exit(0);        }    }    public void keyReleased(KeyEvent e) {            }}